{template 'common/header'}
<style>
    /*多图上传*/
.multi-img-details{margin-top:.5em;}
.multi-img-details .multi-item{height: 150px; max-width: 150px; position:relative; float: left; margin-right: 18px;}
.multi-img-details .multi-item img{max-width: 150px; max-height: 150px;}
.multi-img-details .multi-item em{position:absolute; top: 0; right: -14px;}
</style>
<ul class="nav nav-tabs">
    <li><a href="{php echo $this->createWebUrl('about', array('op'=>'display'));}">关于我们</a></li>
    <li class="active"><a href="{php echo $this->createWebUrl('about', array('op'=>'edit' ,'id' => $about['id']));}">编辑关于我们</a></li>
</ul>

<div class="main">
    <form action="" method="post" class="form-horizontal form" id="form">
        <div class="panel panel-default">

            <div class="panel-heading">编辑关于我们</div>

            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">详情内容：</label>
                    <div class="col-xs-12 col-sm-8">
                        <textarea name="content" class="form-control content" cols="60">{$about['content']}</textarea>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-xs-12 col-sm-9 col-md-10 col-lg-10 col-sm-offset-3 col-md-offset-2 col-lg-offset-2">
                        <input type="hidden" name="id" value="{$about['id']}" />
                        <input name="submit" type="submit" value="提交" class="btn btn-primary" />
                        <input type="hidden" name="token" value="{$_W['token']}" />
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<script>
require(['jquery', 'util'], function($, util){
    $(function(){
        $('#form').submit(function(){
            if($('input[name="content"]').val() == ''){
                util.message('请填写详情内容.');
                return false;
            }

            return true;
        });
    });
});
require(['jquery', 'util'], function($, u){
    $(function(){
        u.editor($('.content')[0]);
    });
});
</script>

{template 'common/footer'}